package pe.com.cineplanet.dao.mapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import pe.com.cineplanet.bean.Rubro;

public class RubroMapper implements RowMapper{

	public Rubro mapRow(ResultSet rs, int arg1) throws SQLException {
		
		Rubro rubro = new Rubro(
				rs.getString("id_rubro"),
				rs.getString("descrip")
		);
		
		return rubro;
	}

}
